#pragma once
#include "DrawView.h"
namespace UILib
{
    class CDrawProgressBar : public CDrawView
    {
    public:
        CDrawProgressBar(void);
        CDrawProgressBar( Bitmap* pbmpBkg, Bitmap* pbmpOver, const PUIRect pRect\
            , const PSplitPos pSplit = NULL, const UINT uID = -1\
            , const int nStatusCount = 4, ViewListener* pListener = NULL );

        virtual ~CDrawProgressBar(void);

        wstring GetClass() { return L"ProgressBar"; };

        void SetTotal(const int nTotal);
        void SetCurPos(const int nPos);
        virtual void DrawElement( const HDC hDC, const RECT &rcPaint );
    private:
        Bitmap*     pbmpBkg_;
        Bitmap*     pbmpOver_;
        SplitPos    pSplit_;
        int         nTotal_;
        int         nCurPos_;
    };
}
